import java.util.Scanner;

/**
 * Created by 14229 on 2020/2/27.
 */
public class Test10 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串：");
        String s = sc.nextLine();
        if (s.length()<5){
            System.out.println("长度小于五 请重新输入");
            return;
        }
        int count = 0;
        char[] chars = s.toCharArray();
        for (int i = 0; i <chars.length ; i++) {
           if (chars.length-i>=4){
               for (int j = i; j <chars.length; j++) {
                   count++;
                   if (count<=4){
                       System.out.print(chars[j]);
                   }
               }
               System.out.println();
               count=0;
           }
        }
    }
}
